import { createPinia } from "pinia"; // import pinia
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const pinia = createPinia(); // create pinia instance
pinia.use(piniaPluginPersistedstate); // use pinia-plugin-persistedstate plugin
export const setupStore = (app: any) => {
    app.use(pinia);
};

// export pinia instance
export default pinia;
